
// state 状态函数化
const getDefaultState = ()=> {
  return {
    modal_show: false,

  }
}

// 初始化状态
const state = {
  modal_show: false
}

const mutations = {
  reset_state: state => {
    // 对象类型 响应式
    Object.assign(state, getDefaultState())
  },
  open_modal: state => {
    state.modal_show = true
  },
  close_modal: state => {
    state.modal_show = false
  }
}

const actions = {

}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
}
